object Form1: TForm1
  Left = 352
  Top = 174
  Width = 1118
  Height = 654
  Caption = 'Modbus'#36890#35759#35299#26512'Demo_Email:tao60@qq.com'
  Color = clBtnFace
  Font.Charset = GB2312_CHARSET
  Font.Color = clBlack
  Font.Height = -12
  Font.Name = #23435#20307
  Font.Style = []
  OldCreateOrder = False
  Position = poDesktopCenter
  OnCreate = FormCreate
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 12
  object pn1: TPanel
    Left = 0
    Top = 0
    Width = 225
    Height = 616
    Align = alLeft
    BevelOuter = bvNone
    TabOrder = 0
    object lbl8: TLabel
      Left = 16
      Top = 280
      Width = 72
      Height = 12
      Caption = #30417#27979#38388#38548#26102#38388
    end
    object lbl9: TLabel
      Left = 16
      Top = 304
      Width = 72
      Height = 12
      Caption = #30417#27979#36215#22987#22320#22336
    end
    object lbl10: TLabel
      Left = 16
      Top = 328
      Width = 72
      Height = 12
      Caption = #30417#27979#22320#22336#38271#24230
    end
    object lb3: TLabel
      Left = 40
      Top = 256
      Width = 48
      Height = 12
      Caption = #36890#35759#26041#24335
    end
    object lb4: TLabel
      Left = 184
      Top = 280
      Width = 24
      Height = 12
      Caption = #27627#31186
    end
    object imgOn: TImage
      Left = 18
      Top = 360
      Width = 32
      Height = 32
      Picture.Data = {
        055449636F6E0000010001002020000001001800A80C00001600000028000000
        20000000400000000100180000000000800C0000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        00000000000000000000000000000000000000FF000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        00000000000000000000000000000000000000FF000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        000000000000000000000000000000000000000000000000000000FF00000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000FF0000000000000000000000000000000000
        000000000000000000000000000000000000000000000000000000000000FF00
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000FF0000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000FFFFFFFFFFFFFFFFFF0000FF0000FF0000FFFFFFFFFFFFFFFFFFFF
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000FFFFFFFFFFFF0000FF0000FF0000FF0000FF0000FF0000FF0000FFFFFFFF
        FFFFFF0000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000FFFFFF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF
        FFFFFF0000000000000000000000000000000000000000000000000000000000
        00000000000000000000000000000000000000000000000000000000000000FF
        FFFFFFFFFF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF
        FFFFFFFFFFFF0000000000000000000000000000000000000000000000000000
        00000000000000000000000000000000000000000000000000000000000000FF
        FFFF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF
        0000FFFFFFFF0000000000000000000000000000000000000000000000000000
        000000000000000000000000000000000000FF0000FF000000000000000000FF
        FFFF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF
        0000FFFFFFFF0000000000000000000000FF0000FF0000000000000000000000
        00000000000000000000000000000000000000000000000000000000000000FF
        FFFF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF
        0000FFFFFFFF0000000000000000000000000000000000000000000000000000
        00000000000000000000000000000000000000000000000000000000000000FF
        FFFFFFFFFF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF
        FFFFFFFFFFFF0000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000FFFFFF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF
        FFFFFF0000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000FFFFFFFFFFFF0000FF0000FF0000FF0000FF0000FF0000FF0000FFFFFFFF
        FFFFFF0000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000FFFFFFFFFFFFFFFFFF0000FF0000FF0000FFFFFFFFFFFFFFFFFFFF
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        000000000000000000000000000000000000000000000000000000000000FF00
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000FF0000000000000000000000000000000000000000000000
        000000000000000000000000000000000000000000000000000000FF00000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000FF0000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        00000000000000000000000000000000000000FF000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        00000000000000000000000000000000000000FF000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFEFFFF
        FFFFFFFFFEFFFF7FFF783EFFFFE00FFFFFC007FFFF8003FFFF8003FFFF0001FF
        FF0001FFF300019FFF0001FFFF0001FFFF8003FFFF8003FFFFC007FFFFE00FFF
        FF783DFFFEFFFEFFFFFFFFFFFFFEFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFF
        FFFFFFFF}
      Visible = False
    end
    object imgOff: TImage
      Left = 18
      Top = 360
      Width = 32
      Height = 32
      Center = True
      Picture.Data = {
        055449636F6E0000010001002020000001001800A80C00001600000028000000
        20000000400000000100180000000000800C0000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000FFFFFFFFFFFFFFFFFF000000000000000000FFFFFFFFFFFFFFFFFF
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000FFFFFFFFFFFF000000000000000000000000000000000000000000FFFFFF
        FFFFFF0000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000FFFFFF000000000000000000000000000000000000000000000000000000
        FFFFFF0000000000000000000000000000000000000000000000000000000000
        00000000000000000000000000000000000000000000000000000000000000FF
        FFFFFFFFFF000000000000000000000000000000000000000000000000000000
        FFFFFFFFFFFF0000000000000000000000000000000000000000000000000000
        00000000000000000000000000000000000000000000000000000000000000FF
        FFFF000000000000000000000000000000000000000000000000000000000000
        000000FFFFFF0000000000000000000000000000000000000000000000000000
        00000000000000000000000000000000000000000000000000000000000000FF
        FFFF000000000000000000000000000000000000000000000000000000000000
        000000FFFFFF0000000000000000000000000000000000000000000000000000
        00000000000000000000000000000000000000000000000000000000000000FF
        FFFF000000000000000000000000000000000000000000000000000000000000
        000000FFFFFF0000000000000000000000000000000000000000000000000000
        00000000000000000000000000000000000000000000000000000000000000FF
        FFFFFFFFFF000000000000000000000000000000000000000000000000000000
        FFFFFFFFFFFF0000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000FFFFFF000000000000000000000000000000000000000000000000000000
        FFFFFF0000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000FFFFFFFFFFFF000000000000000000000000000000000000000000FFFFFF
        FFFFFF0000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000FFFFFFFFFFFFFFFFFF000000000000000000FFFFFFFFFFFFFFFFFF
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000
        00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
        FFFFFFFFFFFFFFFFFFF83FFFFFE00FFFFFC007FFFF8003FFFF8003FFFF0001FF
        FF0001FFFF0001FFFF0001FFFF0001FFFF8003FFFF8003FFFFC007FFFFE00FFF
        FFF83FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
        FFFFFFFF}
    end
    object lb5: TLabel
      Left = 24
      Top = 464
      Width = 156
      Height = 12
      Caption = #26412'DEMO'#29992#20110#20445#25345#23492#23384#22120#30340#35835#20889
    end
    object btnScanStart: TButton
      Left = 96
      Top = 360
      Width = 75
      Height = 25
      Caption = #24320#22987#30417#27979
      TabOrder = 0
      OnClick = btnScanStartClick
    end
    object edtCheckRote: TEdit
      Left = 96
      Top = 272
      Width = 81
      Height = 20
      TabOrder = 1
      Text = '300'
      OnExit = edtCheckRoteExit
    end
    object edtBeginAddress: TEdit
      Left = 96
      Top = 296
      Width = 81
      Height = 20
      TabOrder = 2
      Text = '1'
      OnExit = edtBeginAddressExit
    end
    object edtAddressLen: TEdit
      Left = 96
      Top = 320
      Width = 81
      Height = 20
      TabOrder = 3
      Text = '10'
      OnExit = edtBeginAddressExit
    end
    object btnScanStop: TButton
      Left = 96
      Top = 392
      Width = 75
      Height = 25
      Caption = #20572#27490#30417#27979
      Enabled = False
      TabOrder = 4
      OnClick = btnScanStopClick
    end
    object pn2: TPanel
      Left = 0
      Top = 0
      Width = 225
      Height = 241
      Align = alTop
      BevelOuter = bvNone
      Font.Charset = GB2312_CHARSET
      Font.Color = clBlack
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      TabOrder = 5
      object pgc1: TPageControl
        Left = 0
        Top = 25
        Width = 225
        Height = 207
        ActivePage = ts2
        Align = alClient
        Style = tsFlatButtons
        TabOrder = 0
        OnChange = pgc1Change
        object ts1: TTabSheet
          Caption = #20018#21475
          object grp1: TGroupBox
            Left = 12
            Top = 0
            Width = 189
            Height = 161
            TabOrder = 0
            object lbl1: TLabel
              Left = 10
              Top = 15
              Width = 36
              Height = 12
              Caption = #31471'  '#21475
            end
            object lbl2: TLabel
              Left = 10
              Top = 37
              Width = 36
              Height = 12
              Caption = #27874#29305#29575
            end
            object lbl3: TLabel
              Left = 10
              Top = 60
              Width = 36
              Height = 12
              Caption = #26657#39564#20301
            end
            object lbl4: TLabel
              Left = 10
              Top = 83
              Width = 36
              Height = 12
              Caption = #25968#25454#20301
            end
            object lbl5: TLabel
              Left = 10
              Top = 106
              Width = 36
              Height = 12
              Caption = #20572#27490#20301
            end
            object btnSwitch: TButton
              Left = 69
              Top = 128
              Width = 79
              Height = 25
              Caption = #25171#24320#20018#21475
              TabOrder = 0
              Visible = False
              OnClick = btnSwitchClick
            end
            object cbb1: TComboBox
              Left = 53
              Top = 11
              Width = 116
              Height = 20
              Style = csDropDownList
              ItemHeight = 0
              TabOrder = 1
            end
            object cbb2: TComboBox
              Left = 53
              Top = 33
              Width = 116
              Height = 20
              AutoComplete = False
              Style = csDropDownList
              DropDownCount = 13
              ItemHeight = 12
              MaxLength = 6
              TabOrder = 2
              Items.Strings = (
                'Custom'
                '300'
                '600'
                '1200'
                '2400'
                '4800'
                '9600'
                '19200'
                '38400'
                '43000'
                '56000'
                '57600'
                '115200')
            end
            object cbb3: TComboBox
              Left = 53
              Top = 56
              Width = 116
              Height = 20
              Style = csDropDownList
              ItemHeight = 12
              TabOrder = 3
              Items.Strings = (
                'None'
                'Odd'
                'Even'
                'Mark'
                'Space')
            end
            object cbb4: TComboBox
              Left = 53
              Top = 79
              Width = 116
              Height = 20
              Style = csDropDownList
              ItemHeight = 12
              TabOrder = 4
              Items.Strings = (
                '5'
                '6'
                '7'
                '8')
            end
            object cbb5: TComboBox
              Left = 53
              Top = 102
              Width = 116
              Height = 20
              Style = csDropDownList
              ItemHeight = 12
              TabOrder = 5
              Items.Strings = (
                '1'
                '1.5'
                '2')
            end
          end
        end
        object ts2: TTabSheet
          Caption = 'TCP/IP'
          ImageIndex = 1
          object lb1: TLabel
            Left = 10
            Top = 39
            Width = 36
            Height = 12
            Caption = #31471'  '#21475
          end
          object lb2: TLabel
            Left = 10
            Top = 13
            Width = 36
            Height = 12
            Caption = 'IP'#22320#22336
          end
          object edtIP: TEdit
            Left = 56
            Top = 7
            Width = 105
            Height = 20
            TabOrder = 0
            Text = '127.0.0.1'
          end
          object edtPort: TEdit
            Left = 56
            Top = 31
            Width = 49
            Height = 20
            TabOrder = 1
            Text = '502'
            OnExit = edtPortExit
          end
        end
      end
      object pn4: TPanel
        Left = 0
        Top = 0
        Width = 225
        Height = 25
        Align = alTop
        BevelOuter = bvNone
        Caption = #36890#35759#26041#24335
        Color = 16744448
        Font.Charset = GB2312_CHARSET
        Font.Color = clWhite
        Font.Height = -12
        Font.Name = #23435#20307
        Font.Style = []
        ParentFont = False
        TabOrder = 1
      end
      object pn5: TPanel
        Left = 0
        Top = 232
        Width = 225
        Height = 9
        Align = alBottom
        BevelOuter = bvNone
        Color = 16744448
        TabOrder = 2
      end
    end
    object edtConType: TEdit
      Left = 96
      Top = 248
      Width = 81
      Height = 20
      TabStop = False
      Color = clBtnFace
      ReadOnly = True
      TabOrder = 6
      OnExit = edtCheckRoteExit
    end
    object btnWrite: TButton
      Left = 96
      Top = 424
      Width = 75
      Height = 25
      Caption = #25191#34892#20889#20837
      Enabled = False
      TabOrder = 7
      OnClick = btnWriteClick
    end
  end
  object pn3: TPanel
    Left = 465
    Top = 0
    Width = 637
    Height = 616
    Align = alClient
    BevelOuter = bvNone
    TabOrder = 1
    object grp2: TGroupBox
      Left = 0
      Top = 0
      Width = 637
      Height = 241
      Align = alTop
      Caption = #21457#36865#26085#24535
      TabOrder = 0
      object mmo1: TMemo
        Left = 2
        Top = 14
        Width = 633
        Height = 225
        Align = alClient
        ScrollBars = ssVertical
        TabOrder = 0
      end
    end
    object grp3: TGroupBox
      Left = 0
      Top = 241
      Width = 637
      Height = 375
      Align = alClient
      Caption = #25509#25910#26085#24535
      TabOrder = 1
      object mmo2: TMemo
        Left = 2
        Top = 14
        Width = 633
        Height = 359
        Align = alClient
        ScrollBars = ssVertical
        TabOrder = 0
      end
    end
  end
  object gridData: TStringGrid
    Left = 225
    Top = 0
    Width = 240
    Height = 616
    Align = alLeft
    ColCount = 3
    Ctl3D = False
    DefaultColWidth = 70
    DefaultRowHeight = 20
    Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRangeSelect, goEditing]
    ParentCtl3D = False
    TabOrder = 2
    OnSelectCell = gridDataSelectCell
  end
  object cm1: TComm
    CommName = 'COM2'
    BaudRate = 9600
    ParityCheck = False
    Outx_CtsFlow = False
    Outx_DsrFlow = False
    DtrControl = DtrEnable
    DsrSensitivity = False
    TxContinueOnXoff = True
    Outx_XonXoffFlow = False
    Inx_XonXoffFlow = False
    ReplaceWhenParityError = False
    IgnoreNullChar = False
    RtsControl = RtsEnable
    XonLimit = 500
    XoffLimit = 500
    ByteSize = _8
    Parity = None
    StopBits = _1
    XonChar = #17
    XoffChar = #19
    ReplacedChar = #0
    ReadIntervalTimeout = 100
    ReadTotalTimeoutMultiplier = 0
    ReadTotalTimeoutConstant = 0
    WriteTotalTimeoutMultiplier = 0
    WriteTotalTimeoutConstant = 0
    OnReceiveData = cm1ReceiveData
    Left = 496
    Top = 24
  end
  object tmr1: TTimer
    Enabled = False
    Interval = 300
    OnTimer = tmr1Timer
    Left = 528
    Top = 24
  end
  object tcp1: TIdTCPClient
    MaxLineAction = maException
    ReadTimeout = 0
    Host = '127.0.0.1'
    Port = 502
    Left = 560
    Top = 24
  end
end
